<layout name="Public/base" />
<div class="row">
	<include file="Manage/left" />
	<div class="span9">
		<div class="page-main">
			<include file="Manage/appInfo" />
			<div class="title"><h2>{$mini_title} ({$__TOTAL__})</h2></div>
			<div class="content">
				<div class="fast-action">
					<a class="btn btn-success" href="{:U('add?appid='.$_GET['appid'])}">添加自定义回复</a>
				</div>
				<table class="border striped">
					<thead>
						<tr>
							<th class="center" width="60">回复类型</th>
							<th class="center" >关键词</th>
							<th class="center" width="80">创建时间</th>
							<th class="center" width="60">操作</th>
						</tr>
					</thead>
					<tbody>
						<empty name="__LIST__">
						<tr>
							<td colspan="4" class="center">您还没有创建任何关键词！</td>
						</tr>
						<else/>
						<volist name="__LIST__" id="vo">
						<tr>
							<td class="center">{$vo.type}</td>
							<td>{$vo.keyword}</td>
							<td class="center">{$vo.create_time|time_format='ymd'}</td>
							<td class="center">
								<a href="{:U('edit?id='.$vo['id'].'&appid='.$_GET['appid'])}">编辑</a>
								<a class="confirm ajax-get" href="{:U('del?id='.$vo['id'].'&appid='.$_GET['appid'])}">删除</a>
							</td>
						</tr>
						</volist>
						</empty>
					</tbody>
				</table>
				<div class='pagination'>
					{$__PAGE__}
				</div>
			</div>
		</div>
	</div>
</div>